package com.hujing;

import java.time.LocalDate;

public class LocalDateDemo {

    public static void main(String[] args) {
        LocalDate today = LocalDate.now();
        System.out.println(today);
        
        // 加1天
        LocalDate tomorrow = today.plusDays(1);
        System.out.println(tomorrow);
        
        // 减1天
        LocalDate yesterday = today.minusDays(1);
        System.out.println(yesterday);
        
    }
}
